/**
 * Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
 * Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved.
 * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * http://opensource.org/licenses/MIT
 * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
 * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations under the License.
 */

@import '../../css/variable.css';
@import '../../css/mixins/scroller.css';
@import '../../css/mixins/clearfix.css';

.biz-ip-searcher-wrapper {
    position: relative;
    width: 100%;
    border: 1px solid $borderWeightColor;
    background-color: #fff;
    border-radius: 2px;
    z-index: 1;

    .biz-searcher {
        width: 80%;
        height: 36px;
        border-radius: 2px;
        font-size: 12px;
        position: relative;
        z-index: 1;
        background: #fff;
        cursor: pointer;
        white-space: nowrap;
        margin: 0 5px;
        overflow: hidden;
        overflow-x: scroll;

        &::-webkit-scrollbar {
            display: none;
        }

        &::-webkit-scrollbar-thumb {
            display: none;
        }

        &.disable {
            cursor: not-allowed;
        }

        .input {
            padding: 0;
            border: 0;
            box-sizing: border-box;
            outline: none;
            max-width: 150px;
            height: 36px;
            margin: -3px 3px;
            margin-left: 0;
        }

        .search-keys {
            @mixin clearfix;
            @mixin scroller;
            height: 100%;
            line-height: 1;

            >li {
                display: inline-block;
                margin: -1px 3px;
                cursor: pointer;
                position: relative;
                padding: 2px;
                border-radius: 2px;
                height: 27px;
                line-height: 1;
                &.placeholder {
                    color: #c3cdd7;
                    top: 2px;
                }
            }

            .key-node {
                background-color: $primaryLightColor;
                padding-right: 16px;

                .remove-key {
                    display: inline-block;
                }
            }

            .remove-key {
                position: absolute;
                width: 16px;
                height: 16px;
                line-height: 16px;
                bottom: 5px;
                right: 3px;
                display: inline-block;
                font-size: 12px;
                text-align: center;
                color: $fontColor;
                display: none;
            }
        }

        .tag {
            display: inline-block;
            background-color: $primaryLightColor;
            color: $fontColor;
            font-size: 12px;
            border: none;
            vertical-align: middle;
            box-sizing: border-box;
            overflow: hidden;
            border-radius: 2px;
            padding: 0 9px;
            min-height: 21px;
            line-height: 22px;
            word-break: break-all;
        }
    }

    .actions {
        position: absolute;
        right: 10px;
        top: 2px;
        color: #c4ced8;
        z-index: 10;
        height: 36px;
        line-height: 36px;

        .btn {
            font-size: 16px;
            color: #c4ced8;
            margin-left: 3px;
            position: relative;
            top: -2px;
        }

        .disable-btn {
            cursor: not-allowed;
        }
    }

    .ip-searcher-footer {
        @mixin clearfix;
        height: 36px;
        line-height: 1;
        position: relative;
        font-size: 12px;

        .placeholder {
            position: absolute;
            top: 10px;
            left: 10px;
            color: $fnMinorColor;
        }
    }
}
